package com.虚拟机;


public class MyThread extends Thread{

    public static void main(String[] args) {

        MyThread mt1 = new MyThread("Thread a");
        MyThread mt2 = new MyThread("Thread b");

        mt1.setName("My-Thread-花花 ");
        mt2.setName("My-Thread-红红 ");

        mt1.start();
        mt2.start();
    }

    public MyThread(String name) {
    }

    public void run() {

        while (true) {

        }
    }


}